import java.util.Scanner;

/**
 * @Author MDD
 * @Description
 * @Version
 * @Date
 **/
public class No_4 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = (int)(Math.random()*100+1);
        System.out.println(num);
        System.out.print("请输入你想猜的数字：");
        int counter = 0;
        for (int i =1;i<100000;i--,counter++){
            int guessNum = sc.nextInt();
            if (num>guessNum){
                System.out.print("大了点，再猜:");
            }
            else if (num<guessNum){
                System.out.print("小了点，再猜:");
            }
            else if (num==guessNum){
                if (counter==1){
                    System.out.println("你太聪明了！");
                }
                else if (counter<=5&&counter>=2){
                    System.out.println("不错，再接再厉！");
                }
                else if (counter>=6){
                    System.out.println("要努力啊！");
                }
            }
        }
    }
}

